<div region="west" border="true" split="true" title="${orgFullName!}"  style="width:200px;padding:0px;overflow-y: auto;">    
	<div id="menu-tree" class="accordiontree" data-options="animate:true"></div>
</div>
<script type="text/javascript">
	//初始化
	$(function () {
		$('#menu-tree').tree({
			data: ${menus}[0]["children"],
			onClick: function (node) {
				$('#menu-tree').tree('toggle', node.target); //简单单吉展开关闭
				if(node["url"]&&!(node["children"])){
					SysTabObj.addTab(node.text, node.url);
				}
			}
		})
		$('#menu-tree').tree("collapseAll");
		//画上图标
		renderIcon();
	})
	//加载菜单
	function loadLeftMenu(data){
		if(data){
			$('#menu-tree').tree('loadData', data);
			$('#menu-tree').tree("collapseAll");
			//画上图标
			renderIcon();
		}
	}
	//画上图标
	function renderIcon(){
		$(".tree-icon").each(function(i,o){
			var _class = $(o).attr("class");
			var _icon = $("<i class='fa "+_class+"'/>");
			_icon.removeClass("tree-icon")
			_icon.removeClass("tree-folder")
			_icon.removeClass("tree-file")
			_icon.removeClass("tree-folder-open")
			$(o).next().prepend(" ").prepend(_icon);
		});
	}
</script>